#include "BorderDecorator.h"
#include <iostream>

BorderDecorator::BorderDecorator(std::shared_ptr<IView> view)
	:Decorator(view)
{

}

void BorderDecorator::Draw()
{
	// 装饰器除了调用内嵌对象的函数外，还加入了自己的额外逻辑
	std::cout << "+++++++++++++++++++++++" << std::endl;
	Decorator::Draw();
	std::cout << "-----------------------" << std::endl;
}